package cn.zwx.business.goods.service;

import cn.zwx.order.req.DeductionRepertoryReq;
import cn.zwx.order.req.QueryGoodsInfoReq;
import cn.zwx.order.resp.QueryGoodsInfoResp;

/**
 * @description: 商品服务逻辑处理
 * @projectName:rocket-mq-example
 * @see:cn.zwx.business.goods.service
 * @author:zhangwenxue
 * @createTime:2020/10/15 14:08
 * @version:1.0
 */
public interface GoodsService {
    /**
     * @description 扣减库存接口
     * @return void
     * @author zhangwenxue
     * @createTime 2020/10/15 14:12
     **/
    void deductionRepertory(DeductionRepertoryReq repertoryReq);

    /**
     * @description 查询商品信息
     * @return cn.zwx.goods.resp.QueryGoodsInfoResp
     * @author zhangwenxue
     * @createTime 2020/10/15 14:22
     **/
    QueryGoodsInfoResp queryGoodsInfo(QueryGoodsInfoReq req);
}
